package sb.constraint.demo.dto;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

/**
 * @author zss
 * @date 2021/9/2 15:46
 * @Email:451682479@qq.com
 */
@Data
@Validated
public class Test1ReqDTO implements Serializable {

    @NotNull(message = "age not null")
    @ApiModelProperty("年龄")
    @Max(value = 100,message = "max 100")
    private Integer age;
}
